home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gSimObject, gTruckObject, gLevelObject
- puppetPalette(0)
- if the demoFlag of gSimObject = 1 then
- startTimer()
- set the tileNum of the blockedCellObj of gTruckObject to 0
- set the tileType of the blockedCellObj of gTruckObject to #BG
- set x to blockCrossings(the cell of gTruckObject, getLast(the recordedMoveList of gSimObject))
- repeat while the timer < 5
- end repeat
- explode(2)
- clearAllActors()
- puppetPalette("MainPal")
- go("Grass")
- go(the frame + 1)
- puppetPalette("SimPal", 60)
- updateStage()
- puppetPalette(0)
- predrawSimButtons(gSimObject)
- go(label("Simulator" & string(the level of gLevelObject)))
- createGlobalButtons(gSimObject)
- else
- updateActors()
- go(the frame)
- end if
- end
-